#ifndef __PANDA_DEFINE_H_
#define __PANDA_DEFINE_H_

///////////////

#define    PANDA_ERR_SYSTEM        -3  
#define    PANDA_ERR_INPUT_DATA    -2  
#define    PANDA_MC_DOWN           -1 

#define    PANDA_SUCCESS            0
#define    PANDA_MC_OK              0
#define    PANDA_MC_FAIL            1
#define    PANDA_MC_RESTART         2
#define    PANDA_MC_NEXT            3
#define    PANDA_MC_LIVE            0 
#define    PANDA_MC_NOT_FOUND       4


#define    PANDA_MC_SET             1
#define    PANDA_MC_GET             2
#define    PANDA_MC_INCR            3
#define    PANDA_MC_DECR            4
#define    PANDA_MC_DEL             5 

#define    PANDA_MC_DB_SET          6
#define    PANDA_MC_DB_GET          7
#define    PANDA_MC_DB_INCR         8
#define    PANDA_MC_DB_DECR         9
#define    PANDA_MC_DB_DEL          10 


#define    PANDA_MC_VALUE_MAX          1024*1024*10            //10M
#define    PANDA_MC_KEY_MAX            110       


#define    PANDA_ERR_PARAMETER      -1       


#define    PANDA_DB_FIELD_KEY        "keycol"
#define    PANDA_DB_FIELD_VAL        "valcol"
#define    PANDA_DB_FIELD_TIME       "mtime"
#define    PANDA_DB_T_HEADER         "table"
#define    PANDA_CMD_KEY             "cmd"
#define    PANDA_MOD_TIME            "mtime"   /* mod time key */
#define    PANDA_CMD_RM              "rm"      /* remove  */
#define    PANDA_CMD_REPLACE         "rp"      /* replace */
#define    PANDA_CMD_ATOM            "am"      /* atom    */


#endif // __PANDA_DEFINES_H_
